package cc.messcat.entity.helpPerson;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import cc.messcat.common.util.DateHelper;

/**
 * 帮扶负责人
 */
@Entity
@Table(name = "HELPPERSON")
public class HelpPerson implements Serializable{

	private static final long serialVersionUID = -8209932517410113460L;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "duty_id")
    private Long duty_id;//责任人编号

    @Column(name = "date")
    @JsonFormat(pattern = DateHelper.DATE_COMMON_FORMAT, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_COMMON_FORMAT)
    private Date date;//日期

    @Column(name = "name")
    private String name;//姓名

    @Column(name = "sex")
    private String sex;//性别

    @Column(name = "ID_number")
    private String ID_number;//证件号码

    @Column(name = "Job_level")
    private String Job_level;//职务级别

    @Column(name = "face")
    private String face;//政治面貌

    @Column(name = "education")
    private String education;//学历

    @Column(name = "technical")
    private String technical;//技术特长

    @Column(name = "telephone_number")
    private String telephone_number;//联系电话

    @Column(name = "Prepared_by")
    private String Prepared_by;//制单人

    @Column(name = "Prepared_time")
    @JsonFormat(pattern = DateHelper.DATE_COMMON_FORMAT, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_COMMON_FORMAT)
    private Date Prepared_time;//制单时间

    @Column(name = "Modifier")
    private String Modifier;//修改人

    @Column(name = "update_time")
    @JsonFormat(pattern = DateHelper.DATE_COMMON_FORMAT, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_COMMON_FORMAT)
    private Date update_time;//修改时间

    @Column(name = "Affiliation")
    private String Affiliation;//隶属关系

    @Column(name = "Unit_name")
    private String Unit_name;//单位名称


    @Column(name = "HELP_UNIT")
    private Long helpUnit;//外键
    
    //@Transient
    @Column(name = "HELP_UNITNAME")
	private String helpUnitName;//帮扶单位名称地址 

    @Column(name = "status")
    private String status;//0为删除,1为正常
    
//    @Column(name = "ANNUAL")
//    private String annual;//年度


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDuty_id() {
        return duty_id;
    }

    public void setDuty_id(Long duty_id) {
        this.duty_id = duty_id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getID_number() {
        return ID_number;
    }

    public void setID_number(String iD_number) {
        ID_number = iD_number;
    }

    public String getJob_level() {
        return Job_level;
    }

    public void setJob_level(String job_level) {
        Job_level = job_level;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getTechnical() {
        return technical;
    }

    public void setTechnical(String technical) {
        this.technical = technical;
    }

    public String getTelephone_number() {
        return telephone_number;
    }

    public void setTelephone_number(String telephone_number) {
        this.telephone_number = telephone_number;
    }

    public String getPrepared_by() {
        return Prepared_by;
    }

    public void setPrepared_by(String prepared_by) {
        Prepared_by = prepared_by;
    }

    public Date getPrepared_time() {
        return Prepared_time;
    }

    public void setPrepared_time(Date prepared_time) {
        Prepared_time = prepared_time;
    }

    public String getModifier() {
        return Modifier;
    }

    public void setModifier(String modifier) {
        Modifier = modifier;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Long getHelpUnit() {
        return helpUnit;
    }

    public void setHelpUnit(Long helpUnit) {
        this.helpUnit = helpUnit;
    }

    public String getAffiliation() {
        return Affiliation;
    }

    public void setAffiliation(String affiliation) {
        Affiliation = affiliation;
    }

    public String getUnit_name() {
        return Unit_name;
    }

    public void setUnit_name(String unit_name) {
        Unit_name = unit_name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getHelpUnitName() {
		return helpUnitName;
	}

	public void setHelpUnitName(String helpUnitName) {
		this.helpUnitName = helpUnitName;
	}

}
